

function sleep(time) {
    return new Promise(((resolve, reject) => {
        setTimeout(() =>{
            resolve('睡醒了')
        },time)
    }))
}
sleep(3000).then(res => {
    console.log(res);
})
